﻿<%@ Page Title="" Language="C#" MasterPageFile="Install.master" AutoEventWireup="true"
    CodeBehind="default.aspx.cs" Inherits="SocialShare.Web.Install._default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    
    <section class="grid_9">
     <fieldset>
     <legend class="title-regular">Database Installation Wizard</legend>
     <section id="divMessage" runat="server">
        <asp:Literal ID="lblMessage" runat="server"></asp:Literal>       
    </section>
    <section class="grid_9">
       <fieldset>
                    <legend>Step 1: Test Connection</legend>
                    <label for="name">
                        your database server name</label><asp:TextBox runat="server" ID="txtServerAddress" Text="localhost"
                            Width="300px" ReadOnly="True"></asp:TextBox>
                    <br />
                    <asp:CheckBox runat="server" ID="chkUseIntegratedSecurity" AutoPostBack="true" Checked="true"
                        Text="Use Windows Integrated Security" OnCheckedChanged="chkUseIntegratedSecurity_CheckedChanged"
                        Enabled="False" />
                    <asp:Panel runat="server" ID="pnlUserCredential" Visible="true">
                        <label for="name">
                            your database server login user name: </label><asp:TextBox runat="server" ID="txtUsername" Width="300px"></asp:TextBox>
                        <label for="name">
                            your database server login password: </label><asp:TextBox runat="server" ID="txtPassword" Width="300px"></asp:TextBox>
                    </asp:Panel>
                    <br />
                    <br />
                    <asp:Button ID="buttonTestConnection" CssClass="button small blue" runat="server" Text="Test Connection"
                        OnClick="buttonTestConnection_Click" />                
                </fieldset>
    </section>
    <section class="grid_9" ID="secStep2" Visible="false" runat="server">
    <fieldset>
        <legend>Step 2: Create Database</legend>
            <asp:Panel runat="server" ID="pnlDbName">
                <label for="name"> Provide a database name: </label><asp:TextBox Text="SocialShare" runat="server" ID="txtDbName" Width="300px"></asp:TextBox>
                <br />
            </asp:Panel>
            <asp:Button ID="buttonCreateDatabase" CssClass="button small red" runat="server" Text="Create Database" OnClick="buttonCreateDatabase_Click" />
    </fieldset>
    </section>
    <section class="grid_9" ID="secStep3" Visible="false" runat="server">
     <fieldset>
        <legend>Step 3: Load Sample Data</legend>
         <asp:Button Enabled="true" ID="buttonInstall" CssClass="button small gray" runat="server"  Text="Install Sample Data" OnClick="buttonInstall_Click" />
    </fieldset>
      
    </section>
    </fieldset>
    </section>
</asp:Content>
